/*=============================================================================

  APPLICATION MANAGER STATE MODULE

  FILE: SYSmgr.cpp
  
  DESCRIPTION

    Application Manager State Module Definition

  EXTERNALIZED FUNCTIONS

    
  Copyright (c) DaeSung Engineering Inc. All rights reserved.

=============================================================================*/
/*=============================================================================

                             EDIT HISTORY

  ---------  -------  -------------------------------------------------------
    when       who     what, where, why
  ---------  -------  -------------------------------------------------------
   06/28/03   nso4th   Version 0.1

=============================================================================*/

/*=============================================================================
  HEADER INCLUSION
=============================================================================*/
#include "SYSmgr.h"

/*=============================================================================
  LOCALIZEDF FUNCTION IMPLEMENTATION
=============================================================================*/

/*=============================================================================
  AMGR CLASS DEFINITION
=============================================================================*/
dword SYSmgr::STATE_MACHINE(dword dwType, dword dwEvent, dword wParam, dword lParam)
{
	switch(m_mjState)
	{
	case IDL_S:
		return	IDL_STATE(dwType, dwEvent, wParam, lParam);

	case DEV_S:
		return	DEV_STATE(dwType, dwEvent, wParam, lParam);

	case RESET_S:
		return	RESET_STATE(dwType, dwEvent, wParam, lParam);
		
	case MANUAL_S:
		return	MANUAL_STATE(dwType, dwEvent, wParam, lParam);
	}

	return	FALSE;
}

void SYSmgr::STATE_POLLING(void)
{
}

dword SYSmgr::State_MajPrevious(void)
{
	return	m_mjPrev;
}

dword SYSmgr::State_MinPrevious(void)
{
	return	m_mnPrev[m_mjPrev];
}

/*=============================================================================
  LOCALIZED FUNCTION IMPLEMENTATION
=============================================================================*/

/*--- END OF SYSmgr_State.CPP ---*/
